package com.heima.controller;


import com.heima.pojo.dto.VmSearchDto;
import com.heima.pojo.vo.PageResponseVo;
import com.heima.pojo.vo.VmPageVo;
import com.heima.service.VmService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/api/vm-service/vm")
public class VmController {
    @Autowired
    private VmService vmService;

    @GetMapping("/search")
    public PageResponseVo<VmPageVo> searchPageVm(VmSearchDto vmSearchDto){
        return  vmService.searchPageVm(vmSearchDto);
    }
}
